﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;
namespace SachOnlineLibrary.DAL
{
    class ChiTietDatHangDAL
    {
        KetNoiDB ketnoi;
        internal ChiTietDatHangDAL()
        {
            ketnoi = new KetNoiDB();
        }

        internal DataTable LietKeChiTietDatHang(int maphieu)
        {
            SqlCommand cmd = new SqlCommand();
            cmd.CommandText = "select * from ChiTietPDH where maphieu = @maphieu";
            cmd.Parameters.Add("@maphieu", SqlDbType.Int).Value = maphieu;
            return ketnoi.ExecuteQuery(cmd);
        }
    }
}
